-- GENERATED SPELL FOR [Lord Sinslayer] --


function spell0_7017(pUnit, Event) --@Aqua Jet,Self--
pUnit:FullCastSpellOnTarget(13586,pUnit)
pUnit:RegisterEvent('Sorts_7017', 644, 1)
end

function spell1_7017(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(12057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7017', 595, 1)
end

function Sorts_7017(pUnit, Event)
local choix_sorts_7017 = math.random(0, 1)
if choix_sorts_7017 == 0 then
pUnit:RegisterEvent('spell0_7017', 1, 1)
end
if choix_sorts_7017 == 1 then
pUnit:RegisterEvent('spell1_7017', 1, 1)
end
end

function mob7017_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7017', math.random(1500, 3000), 1)
end

function mob7017_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7017_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7017_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7017, 1, 'mob7017_Action')
RegisterUnitEvent(7017, 2, 'mob7017_Leave')
RegisterUnitEvent(7017, 3, 'mob7017_Kill')
RegisterUnitEvent(7017, 4, 'mob7017_Die')
